package com.cls.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cls.common.entity.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@TableName("biz_commitment")
public class Commitment extends BaseEntity implements Serializable {

    /**
     * 主键ID
     */
    @TableId(value = "commitment_id", type = IdType.AUTO)
    @NotBlank(message = "{required}")
    private Long commitmentId;


    /**
     * 课题计划 id
     */
    @TableField("context")
    @Size(max = 20000, message = "{noMoreThan}")
    private String context;
    /**
     is_enable
     */
    @TableField("is_enable")
    private Boolean isEnabled;
}
